package com.shelpe.services.algorithm.repository.jpa;

import java.util.Date;
import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;

import com.shelpe.services.algorithm.entity.jpa.DevelopmentPlan;

public interface DevelopmentPlanRepository extends PagingAndSortingRepository<DevelopmentPlan, Long> {

	List<DevelopmentPlan> findByStatusAndToTimeAfterAndContainerID(DevelopmentPlan.Status status, Date today,
			long containerID);

	List<DevelopmentPlan> findByStatusAndToTime(DevelopmentPlan.Status status, Date today);

	List<DevelopmentPlan> findByStatusAndContainerID(DevelopmentPlan.Status status, long containerID);

	List<DevelopmentPlan> findByStatusAndContainerIDAndContainerType(DevelopmentPlan.Status status, long containerID,
			String containerType);
}
